<template>
  <div>
    <div class="layout">
      <NavBar></NavBar>
      <div class="layout-right">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script>
import NavBar from "@/views/layout/navBar.vue";

export default {
  components: {NavBar}
}
</script>

<style scoped lang="scss">
.navbar {
  width: 200px;
  height: 100%;
  background-color: #34383e;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.layout {
  display: flex;
  width: 100%;
  height: 100vb;

  .layout-right {
    flex: 1;
    height: 100%;
    overflow: auto;
  }
}

</style>